package com.briup.day12.bean;

public class Outer3 {
    //局部内部类
    //位置:定义在外部类方法中
    private int o_num = 10;

    public void innerFun() {
        int num = 20;
        class Inner {
//    num=30;
            private int i_num = 30;
            public void test() {
                System.out.println("方法内的变量:"+i_num);
                System.out.println("内部类成员:"+this.i_num);
                System.out.println("外部类成员"+Outer3.this.o_num);
                System.out.println(num);
            }
        }
        Inner inner = new Inner();
        System.out.println("访问局部内部类成员:"+ inner.i_num);
        inner.test();
    }
}
